package com.byb.server.service;

import com.byb.server.service.dto.Wc.InsuranceForWcDTO;
import com.byb.server.service.dto.WcIsurerDTO;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Service Interface for managing WcIsurer.
 */
public interface WcIsurerService {

    /**
     * Save a wcIsurer.
     *
     * @param wcIsurerDTO the entity to save
     * @return the persisted entity
     */
    WcIsurerDTO save(WcIsurerDTO wcIsurerDTO);

    /**
     *  Get all the wcIsurers.
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<WcIsurerDTO> findAll(Pageable pageable);

    /**
     *  Get the "id" wcIsurer.
     *
     *  @param id the id of the entity
     *  @return the entity
     */
    WcIsurerDTO findOne(Long id);

    /**
     *  Delete the "id" wcIsurer.
     *
     *  @param id the id of the entity
     */
    void delete(Long id);

    /**
     * Search for the wcIsurer corresponding to the query.
     *
     *  @param query the query of the search
     *
     *  @param pageable the pagination information
     *  @return the list of entities
     */
    Page<WcIsurerDTO> search(String query, Pageable pageable);

    /**
     *  Get all the wcIsurers for Wc.
     *
     *  @return the list of entities
     */
    InsuranceForWcDTO findAllForWc();
}
